package com.wyz.socket.core.base.frame.receive;


import com.wyz.socket.core.base.IoArgs;
import com.wyz.socket.core.base.frame.Frame;

import java.io.IOException;

public class HeartbeatReceiveFrame extends AbstractReceiveFrame {

    public static byte[] HEARTBEAT_DATA = new byte[]{0, 0, Frame.TYPE_HEARTBEAT, 0, 0, 0};

    public static HeartbeatReceiveFrame INSTANCE = new HeartbeatReceiveFrame();

    private HeartbeatReceiveFrame() {
        this(HEARTBEAT_DATA);
    }

    private HeartbeatReceiveFrame(byte[] header) {
        super(header);
    }

    @Override
    protected int consumeBody(IoArgs args) throws IOException {
        return 0;
    }
}
